import request from '@/utils/request'

export const listCheckmind = (search) => 
    request({
        url: '/checkmind',
        method: 'get',
        params: {
            pageNum: search.pageNum,
            pageSize:search.pageSize,
            queryString:search.queryString
        }
    }) 

export const removeCheckmind = (id) => 
    request({
        url: '/checkmind/' + id,
        method: 'delete'
    })

export const updatemind = (id, checkmind) =>
    request({
        url: '/checkmind/' + id,
        method: 'put',
        data: checkmind
    })

export const saveCheckmind = (checkmind) => 
    request({
        url: '/checkmind',
        method: 'post',
        data: checkmind
    })